package com.tiger.common.core.domain.entity;
import com.tiger.common.annotation.Excel;
import com.tiger.common.core.domain.BaseEntity;
import com.tiger.common.core.domain.entity.SysPost;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;

/**
 * 部门对象 department
 *
 * @author standard
 * @date 2022-10-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "department对象", description = "部门内容")
public class Department extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 部门id
     */
    private Long id;

    /**
     * 部门名称
     */
    @Excel(name = "部门名称")
    @ApiModelProperty(value = "部门名称")
    private String departmentName;

    /**
     * 部门编码
     */
    @Excel(name = "部门编码")
    @ApiModelProperty(value = "部门编码")
    private String departmentCode;

    /**
     * 状态  1-启用 2-禁用
     */
    @Excel(name = "状态  0-启用 1-禁用")
    @ApiModelProperty(value = "状态  0-启用 1-禁用")
    private String departmentState;

    /**
     * 公司id
     */
    @Excel(name = "公司id")
    @ApiModelProperty(value = "公司id")
    private Long companyId;

    @ApiModelProperty(value = "岗位集合")
    private List<SysPost> sysPostList = new ArrayList<>();


    private String type = "1";


}
